﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using ClassLibrary1.DAO;


namespace Bilyteam_Website.Admin
{
    public partial class MenuManager : System.Web.UI.Page
    {
        private Menus mem;
        private MenuDAO memdao;
        
        public MenuManager()
        {
            mem = new Menus();
            memdao = new MenuDAO();

        }
        protected void Page_Load(object sender, EventArgs e)
        {
            if (!IsPostBack)
            {
                LoadDb();
            }
        }

        private void LoadDb()
        {
            dtlmenus.DataSource = memdao.GetAll();
            dtlmenus.DataBind();
            dtlmenus.DataBind();
        }
    }
}